home *** CD-ROM | disk | FTP | other *** search
/ Quick PC 61 / Quick PC 61.iso / I386 / WMS.CAB / wmsHeader.inc < prev    next >
Encoding:
Text File  |  2003-02-21  |  2.3 KB  |  76 lines

  1. <%
  2. '+-------------------------------------------------------------------------
  3. '
  4. '  Microsoft Windows Media
  5. '  Copyright (C) Microsoft Corporation. All rights reserved.
  6. '
  7. '  File:       Header.asp
  8. '
  9. '  Description:    Responsible for creating a standard HTML header for each page
  10. '  Dependencies: LocStrings.asp, WMSConstants.asp, Refresh.asp
  11. '
  12. '--------------------------------------------------------------------------
  13.  
  14. '////////////////////////////////////////////////////////////////////
  15. Sub WriteFramesetDocType()
  16. %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"><%
  17. End Sub
  18.  
  19.  
  20. '////////////////////////////////////////////////////////////////////
  21. Sub WriteMetaTags()
  22.     Response.CacheControl = "no-cache"
  23.     Response.Expires = -1
  24.     Response.AddHeader "Pragma", "no-cache"
  25. %>
  26. <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"/>
  27. <META NAME="Description" CONTENT="<%= Server.HTMLEncode( L_ASPADMINDESCRIPTION_TEXT ) %>"/>
  28. <META HTTP-EQUIV="EXPIRES" CONTENT="-1"/>
  29. <META HTTP-EQUIV="PRAGMA" CONTENT="no-cache"/>
  30. <META NAME="ROBOTS" CONTENT="NOINDEX"/>
  31. <META NAME="MS.LOCALE" CONTENT="<%= Server.HTMLEncode( L_MSLOCALE_TEXT ) %>"/>
  32. <%
  33. End Sub
  34.  
  35.  
  36. '////////////////////////////////////////////////////////////////////
  37. Sub WritePageExpiration()
  38.     Response.ExpiresAbsolute
  39.     Response.Expires = -10000
  40. End Sub
  41.  
  42. '////////////////////////////////////////////////////////////////////
  43. Sub WriteHTMLFramesetHeader()
  44. WriteFramesetDocType
  45. Response.Write("<HTML>")
  46. WriteMetaTags
  47. WritePageExpiration
  48. 'WriteRefreshMetaTag
  49. End Sub
  50.  
  51. '////////////////////////////////////////////////////////////////////
  52. Sub ForceCodepage()
  53. if( ( brMSIE = Session( "BrowserType" ) ) and ( 0 < Len( Request.QueryString("instance") ) ) ) then
  54. %><!-- forcing the codepage... <%= RemoveDangerousCharacters( Request.QueryString("instance") ) %> --><%
  55. end if
  56. End Sub
  57.  
  58. '////////////////////////////////////////////////////////////////////
  59. Sub WriteHTMLHeader( strTitle )
  60.     if( 0 = Len( strTitle ) ) then
  61.         strTitle = L_WMSWEBADMINTITLE_TEXT
  62.     else
  63.         strTitle = strTitle
  64.     end if
  65. %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  66. <HTML>
  67. <HEAD><%
  68. WriteMetaTags
  69. %><title><%= Server.HTMLEncode( strTitle ) %></title>
  70. <% WritePageExpiration
  71. ForceCodepage
  72.  
  73. End Sub
  74. %>
  75.